// store/index.js
import { makeObservable, observable, action } from 'mobx-miniprogram';

class GlobalStore {
  assign=true;

  constructor() {
    makeObservable(this, {
      assign: observable,
      changeToAssign1: action,
      changeToAssign2: action 
    });
  }

  changeToAssign2(){
    this.assign = false
  }

  changeToAssign1(){
    this.assign = true
  }
}

const globalStore = new GlobalStore();
export default globalStore;